//
//  Rich_HomeCell.m
//  YLProject
//
//  Created by 张伯林 on 2018/1/18.
//  Copyright © 2018年 WY. All rights reserved.
//

#import "Rich_HomeCell.h"

@implementation Rich_HomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)initWithModel:(Rick_HomeModel *)model{
    self.iconImageView.image = [UIImage imageNamed:model.iconImageName];
    self.detailLabel.text = model.title;
    if ([model.isHaved isEqualToString:@"Y"]) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    self.detailTitleLabel.text = model.detail;
}

@end
